package org.springframework.example.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.example.aop.config.AppConfig;
import org.springframework.example.aop.service.AccountService;

public class SpringTest {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac =
				new AnnotationConfigApplicationContext(AppConfig.class);

		AccountService accountService = ac.getBean("accountService", AccountService.class);
		accountService.test();


	}
}
